package com.hzy.constant;

/**
 * 记录第三方配置或项目的全局常量
 */
public class ConfigConstants {

    /**
     * 支付宝支付参数
     */
    public static final String ALIPAY_APP_ID = "000000000000000";
    public static final String ALIPAY_CHARSET = "UTF-8";
    public static final String ALIPAY_FORMAT = "json";
    public static final String ALIPAY_SIGN_TYPE = "RSA2";
    public static final String ALIPAY_SERVER_URL = "https://openapi.alipay.com/gateway.do";
    public static final String ALIPAY_APP_PRIVATE_KEY = "000000000000000";
    public static final String ALIPAY_PUBLIC_KEY = "000000000000000";
    public static final String ALIPAY_NOTIFY_URL = "http://47.111.70.243:9101/happycrowd/pay/notify/ali";
    public static final String ALIPAY_GOODS_NOTIFY_URL = "http://47.111.70.243:9101/happycrowd/pay/notify/goods/ali";
    public static final String ALIPAY_EXPIRE_TIME = "30m";
    public static final String ALIPAY_PRODUCT_CODE = "QUICK_MSECURITY_PAY";

    /**
     * 微信支付参数
     */
    public static final String WEIXIN_APPID = "";
    public static final String WEIXIN_MCHID = "000000000000000";
    // 微信商户平台(pay.weixin.qq.com)-->账户设置-->API安全-->密钥设置
    public static final String WEIXIN_APP_SECRET = "000000000000000";

    public static final String WEIXIN_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    public static final String WEIXIN_REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    public static final String WEIXIN_SIGN_TYPE = "MD5";
    public static final String WEIXIN_TRADE_TYPE = "APP";
    public static final String WEIXIN_NOTIFYURL = "http://47.111.70.243:9101/happycrowd/pay/notify/wx";
    public static final String WEIXIN_GOODS_NOTIFY_URL = "http://47.111.70.243:9101/happycrowd/pay/notify/goods/wx";
    public static final String WEIXIN_CHARSET = "UTF-8";
    public static final String WEIXIN_RESULT_CODE = "result_code";
    public static final String WEIXIN_RETURN_CODE = "return_code";
    public static final String WEIXIN_PREPAY_ID = "prepay_id";



    /**
     * 环信相关
     */
    public static final String HX_BASE_URL = "https://a1.easemob.com/";
    public static final String HX_URL = "https://a1.easemob.com/0000000000000000/happycrowd/";
    public static final String HX_APP_KEY = "0000000000000000#happycrowd";
    public static final String HX_ORG_NAME = "0000000000000000";
    public static final String HX_APP_NAME = "happycrowd";
    public static final String HX_CLIENT_ID = "0000000000000000";
    public static final String HX_CLIENT_SECRET = "0000000000000000";
    public static final String HX_TOKEN = "hx_token://";


    //产品名称:云通信短信API产品
    public static final String sms_product = "Dysmsapi";
    public static final String sms_domain = "dysmsapi.aliyuncs.com";


    //AK
    public static final String accessKeyId = "LTAI4GEXubGfD6dxPUkKkriy";
    public static final String accessKeySecret = "UEd5u0p7KsUIaltofXzoYKZfiMs9eT";
    //短信签名
    public static final String sms_end = "飞蝗科技";
    public static final String sms_template_code_bandPhone = "SMS_204965599";
    public static final String sms_template_code_findpwd = "SMS_204965600";
    public static final String sms_template_code_register = "SMS_204965601";
    public static final String sms_template_code_login = "SMS_204965603";



    /**
     * 用户token
     */
    public static final String TOKEN = "token_happycrowd://";
    public static final String TOKEN_FARMER = "token_happycrowd_farmer://";
    public static final String TOKEN_ID = "token_id";
    public static final String TOKEN_TYPE = "token_type";


    /**
     * 万能验证码
     */
    public static final String CODE = "202020";

    /**
     * 用来控制tokenUtils的解析
     * 项目正式上线时候，路径会从项目名称开始，这样会导致tokenUtils解析失败
     * true为测试环境 false为生产环境
     */
    public static final boolean TOKEN_UTILS_TEST = false;

    /*计算距离以及时长所需要判断的作家类型， 0步行，1骑行，2驾车*/
    public static final byte BASE_DRIVE_TYPE = 1;
    public static final byte BASE_CAR_DRIVE_TYPE = 2;

    /**
     * 常用数字
     */
    public static final int ZERO = 0;
    public static final int ONE = 1;
    public static final int TWO = 2;
    public static final int TEN = 10;
    public static final int NINETY_NINE = 99;
    public static final int HUNDRED = 100;
    public static final int NINE_HUNDRED_NINETY_NINE = 999;
    public static final int THOUSAND = 1000;
    public static final int NINE_THOUSAND_NINE_HUNDRED_NINETY_NINE = 9999;

    /**
     * 常用返回值
     */
    public static final String UNKNOWN_UP = "UNKNOWN";
    public static final String UNKNOWN_LOW = "unknown";
    public static final String ERROR_UP = "ERROR";
    public static final String ERROR_LOW = "error";
    public static final String SUCCESS_UP = "SUCCESS";
    public static final String SUCCESS_LOW = "success";
    public static final String OK = "OK";
    public static final String FALSE_UP = "FALSE";
    public static final String FALSE_LOW = "false";

    /**
     * 常用分隔符
     */
    public static final String REGEX = ",";
    /**
     * 控制打印日志的开关  false:关闭 true:开启
     */
    private static final boolean DEBUG = true;
    public static final byte LOG_DEBUG = 0;
    public static final byte LOG_INFO = 1;
    public static final byte LOG_WARN = 2;   //异常
    public static final byte LOG_ERROR = 3;  //错误

    /**
     * 通知类型：类型  0系统通知，1平台推送，2店铺推送
     */
    public static class JPush{
        public static String J_PUSH_APP_KEY = "000000000000000";
        public static String J_PUSH_MASTER_SECRET = "000000000000000";

        public static String J_PUSH_FARMER_APP_KEY = "000000000000000";
        public static String J_PUSH_FARMER_MASTER_SECRET = "000000000000000";

        public static class Type{
            /* 系统通知 */
            public static final int INFORM_SYSTEM = 0;
            public static final int INFORM_PALTFORM = 1;


            /* 测试 */
            public static final int TEST = 100;
        }

        public static class TerminalType{
            /* 0客户端推送 */
            public static final Integer USER = 0;
            /* 1农户端推送 */
            public static final Integer FARMER = 1;
        }
    }
}
